<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:func="http://dip.com.br/functions">


			<table>
				<tr>
					<td><h:outputText value="Nome:" /></td>
					<td><p:inputText id="name" value="#{listagemUF.query.descricao}" /></td>
					<td><p:commandButton action="#{listagemUF.acaoPesquisar}" update="#{func:getFooClientId('divTableUF')}"
							value="Pesquisar" /></td>
				</tr>
			</table>
			<h:panelGroup id="divTableUF" layout="block"
		style="overflow:auto;  height:280px; width:100%;">
		<p:dataTable var="uf" value="#{listagemUF.lista}">
			<f:facet name="header">  
            		Lista de UF  
        		</f:facet>
			<p:column>
				<f:facet name="header">  
            		    UF
            		</f:facet>
				<p:commandLink update="#{ouvinteRendered}" action="#{listagemUF.entidadeSelecionada}"
					 onstart="#{popUpName}.hide()">
					<h:outputText value="#{uf.descricao}" />
					<f:setPropertyActionListener target="#{listagemUF.query}"
						value="#{uf}" />
				</p:commandLink>
				<f:facet name="footer">  
                		UF
            		</f:facet>
			</p:column>
			<p:column>
				<f:facet name="header">  
            		    Sigla
            		</f:facet>
				<p:commandLink  action="#{listagemUF.entidadeSelecionada}"
					 update="#{ouvinteRendered}" onstart="#{popUpName}.hide()">
					<h:outputText value="#{uf.sigla}" />
					<f:setPropertyActionListener target="#{listagemUF.query}"
						value="#{uf}" />
				</p:commandLink>
				<f:facet name="footer">  
                		Sigla
            		</f:facet>
			</p:column>
			<f:facet name="footer">  
          		Lista de UF 
        		</f:facet>
		</p:dataTable>
	</h:panelGroup>
	
</ui:composition>
</html>